package com.dengjiawen.project01.pojo;

import java.util.Objects;

/**
 * This is a entity class.
 *
 * @author Jarvan
 * @version 1.0
 * @create 2020/9/22 21:01
 */
public class MyObject {
    String objectName;

    public String getObjectName() {
        return objectName;
    }

    public void setObjectName(String objectName) {
        this.objectName = objectName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        MyObject myObject = (MyObject) o;

        return Objects.equals(objectName, myObject.objectName);
    }

    @Override
    public String toString() {
        return "MyObject{" +
                "objectName='" + objectName + '\'' +
                '}';
    }
}
